﻿@model IEnumerable<EOS.EntWebDemo.Models.Leave.LinkPageView>
@{
    ViewBag.Title = "请假流程管理";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <p>
        @Html.ActionLink("创建新的绑定页面", "AddLinkPage", new { id = ViewBag.leaveStepID })
    </p>
    <table class="table">
        <tr>
            <th>
                步骤名称
            </th>
            <th>
                页面处理区分
            </th>
            <th>
                页面名称
            </th>
            <th>
                页面链接
            </th>
            <th></th>
        </tr>
        @foreach (var item in Model)
            {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.LeaveStepName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ReturnKBN)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.PageInfoName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.PageUrl)
                </td>
                <td>
                    @using (@Html.BeginForm("DeleteLinkPage", "LeaveSteps", new { id = item.ID }, FormMethod.Post))
                    {
                        @Html.AntiForgeryToken()
                        <div class="btn-group">
                            <a href="~/Conditions/Create/?rID=@item.ID"  class="btn btn-default">条件编辑</a>
                            <button type="submit" class="btn btn-default">删除</button>
                        </div>
                    }
                </td>
            </tr>
        }
    </table>

    <div>
        @Html.ActionLink("返回流程管理", "Index")
    </div>
</body>
</html>
